#include<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  n!=1&&n!=3&&n!=5?cout<<"YES":cout<<"NO";
}